<template>
    <div>
        <h1>新闻详情 ID：{{ id }}</h1>

        <comment :id="id"></comment>
    </div>
</template>

<script>
import comment from "../children/comment.vue"

export default {
    data: function () {
        return {
            id: this.$route.params.id,
        }
    },
    methods: {
        
    },
    components :{
        'comment': comment
    }
}
</script>

<style scoped>

</style>
